package com.ckf.login_wx.util;

import java.util.HashMap;
import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

/*QueryWrapper<?> queryWrapper = new QueryWrapper<>();
Map<String, Object> mapuser = new HashMap<>();
mapuser.put(keyname,name);
queryWrapper.allEq(mapuser);
*
*封装QueryWrapper<?>
*/
public class Getpo {
	public static QueryWrapper<?> one(String keyname,Object name) {//单条封装
		QueryWrapper<?> queryWrapper = new QueryWrapper<>();
	    Map<String, Object> mapuser = new HashMap<>();
	    mapuser.put(keyname,name);
	    queryWrapper.allEq(mapuser);
	    return queryWrapper;
	}
	public static QueryWrapper<?> map(Map<String, Object> mapuser) {//多条封装
		QueryWrapper<?> queryWrapper = new QueryWrapper<>();
	    queryWrapper.allEq(mapuser);
	    return queryWrapper;
	}
}
